/*
 * @Author: 哈兰德
 * @Description: 请为你的组件添加相关描述
 */
import Vue from 'vue'
let ua= {
  install(Vue){
    Vue.prototype.ua = {
        	userAgent:function(){
        let userAgent= this.$store.state.userAgent
        return process.browser? window.navigator.userAgent:userAgent
      },
      isIphoneX:function(){
        return true
        if (process.browser){
          return  !!(isIphone && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 375 && window.screen.height === 812)
        } else {
          return  !!(isIphone && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 375 && window.screen.height === 812)
        }
      }
    }
        
  }
}
Vue.use(ua)